const App = getApp()
Page({
data: {
          tabs1:['婚纱昭','艺术照','儿童照','宝妈照','淘宝产品照','公司形象照'],
	activeIndex1:0,
     msgs2:[],
     msgs3:[],
     msgs4:[],
     msgs5:[],
     msgs6:[],
     msgs7:[]
},
showModal(message) {
   App.WxService.showModal({
    	title: '友情提示',
    	content: message,
    	showCancel: !1,
   });
},
onLoad(option) {
	if (option){
      this.setData({
         globalOption: option
      })
    }
},
onShow(){
     this.getMsgs2();
     this.getMsgs3();
     this.getMsgs4();
     this.getMsgs5();
     this.getMsgs6();
     this.getMsgs7();
},
navigateTo(e) {
    App.navigateTo(e.currentTarget.dataset.url,e.currentTarget.dataset);
},
tabClick1: function (e) {
	const dataset = e.currentTarget.dataset;
    this.setData({
        activeIndex1: dataset.id
    });
},
getMsgs2(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/d1.jpg',title:'标题一',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/d2.jpg',title:'标题二',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/d3.jpg',title:'标题三',desc:'说明文字'}
	  ];
      this.setData({
          msgs2: datas
      });
},
getMsgs3(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/e1.jpg',title:'标题一',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/e2.jpg',title:'标题二',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/e3.jpg',title:'标题三',desc:'说明文字'}
	  ];
      this.setData({
          msgs3: datas
      });
},
getMsgs4(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/f1.jpg',title:'标题一',desc:'说明文字'},
       {thumb_url:'/assets/images/f2.jpg',title:'标题二',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/f3.jpg',title:'标题三',desc:'说明文字'}
	  ];
      this.setData({
          msgs4: datas
      });
},
getMsgs5(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/h1.jpg',title:'标题一',desc:'说明文字'},
       {thumb_url:'/assets/images/h2.jpg',title:'标题二',desc:'说明文字'},
       {thumb_url:'/assets/images/h3.jpg',title:'标题三',desc:'说明文字'}
	  ];
      this.setData({
          msgs5: datas
      });
},
getMsgs6(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/g1.jpg',title:'标题一',desc:'说明文字'},
       {thumb_url:'/assets/images/g2.jpg',title:'标题二',desc:'说明文字'},
       {thumb_url:'/assets/images/g3.jpg',title:'标题三',desc:'说明文字'}
	  ];
      this.setData({
          msgs6: datas
      });
},
getMsgs7(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/i1.jpg',title:'标题一',desc:'说明文字'},
       {thumb_url:'/assets/images/i2.jpg',title:'标题二',desc:'说明文字'},
       {thumb_url:'/assets/images/i3.jpg',title:'标题三',desc:'说明文字'}
	  ];
      this.setData({
          msgs7: datas
      });
}

})
